package service;

import dao.CardDao;
import entity.Card;

import java.util.List;

public class CardService {

    CardDao dao = new CardDao();

    /**
     *
     * @param startIndex  起始索引
     * @param pageSize 页面大小
     * @return
     */
    public List<Card> list(int startIndex, int pageSize){
        return dao.list(startIndex, 2);
    }
}
